package com.common.model.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 描述：
 * 用户模型类
 * @author xianggj
 * @Date 2021/12/8 10:32
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo {

    public static final String DEFAULT_USER_ID = "1";

    private String userId;

    private String userName;

    /**
     * 默认用户
     * @return
     */
    public static UserInfo getDefaultUser(){
        return new UserInfo(DEFAULT_USER_ID, "默认用户");
    }

}
